package com.zmj.demo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zmj.demo.mapper.IDesignMapper;
import com.zmj.demo.pojo.entity.DeptEntity;
import com.zmj.demo.pojo.entity.DesignEntity;
import com.zmj.demo.pojo.entity.req.DesignReqDTO;
import com.zmj.demo.service.DesignService;
import com.zmj.framework.base.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;


/**
 * <p>
 * 设计的表单 服务实现类
 * </p>
 *
 * @author wch
 * @since 2024-04-02
 */
@Service
public class DesignServiceImpl extends BaseServiceImpl<IDesignMapper, DesignEntity> implements DesignService {

    @Override
    public IPage<DesignEntity> selectPageList(IPage<DesignEntity> page, Map<String, Object> param) {
//        LambdaQueryWrapper<DesignEntity> wrapper = new LambdaQueryWrapper<>();
//        wrapper.eq(DesignEntity::getType,designReqDTO.getType());
//        IPage<DesignEntity> result = baseMapper.selectPage(page, wrapper);
//        return result;
        return baseMapper.selectPageList(page, param);
    }
}
